package com.ymttest.database.mapping.thirdpartysync;

import com.ymttest.database.model.thirdpartysync.platformpromoter;
import com.ymttest.database.model.thirdpartysync.platformpromoterExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface platformpromoterMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @SelectProvider(type=platformpromoterSqlProvider.class, method="countByExample")
    int countByExample(platformpromoterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @DeleteProvider(type=platformpromoterSqlProvider.class, method="deleteByExample")
    int deleteByExample(platformpromoterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Delete({
        "delete from platformpromoter",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Insert({
        "insert into platformpromoter (Id, Pid, ",
        "PlatformId, PromoterId, ",
        "Status)",
        "values (#{id,jdbcType=INTEGER}, #{pid,jdbcType=VARCHAR}, ",
        "#{platformId,jdbcType=INTEGER}, #{promoterId,jdbcType=INTEGER}, ",
        "#{status,jdbcType=INTEGER})"
    })
    int insert(platformpromoter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @InsertProvider(type=platformpromoterSqlProvider.class, method="insertSelective")
    int insertSelective(platformpromoter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @SelectProvider(type=platformpromoterSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="Pid", property="pid", jdbcType=JdbcType.VARCHAR),
        @Result(column="PlatformId", property="platformId", jdbcType=JdbcType.INTEGER),
        @Result(column="PromoterId", property="promoterId", jdbcType=JdbcType.INTEGER),
        @Result(column="Status", property="status", jdbcType=JdbcType.INTEGER)
    })
    List<platformpromoter> selectByExample(platformpromoterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Select({
        "select",
        "Id, Pid, PlatformId, PromoterId, Status",
        "from platformpromoter",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="Pid", property="pid", jdbcType=JdbcType.VARCHAR),
        @Result(column="PlatformId", property="platformId", jdbcType=JdbcType.INTEGER),
        @Result(column="PromoterId", property="promoterId", jdbcType=JdbcType.INTEGER),
        @Result(column="Status", property="status", jdbcType=JdbcType.INTEGER)
    })
    platformpromoter selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @UpdateProvider(type=platformpromoterSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") platformpromoter record, @Param("example") platformpromoterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @UpdateProvider(type=platformpromoterSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") platformpromoter record, @Param("example") platformpromoterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @UpdateProvider(type=platformpromoterSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(platformpromoter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platformpromoter
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Update({
        "update platformpromoter",
        "set Pid = #{pid,jdbcType=VARCHAR},",
          "PlatformId = #{platformId,jdbcType=INTEGER},",
          "PromoterId = #{promoterId,jdbcType=INTEGER},",
          "Status = #{status,jdbcType=INTEGER}",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(platformpromoter record);
}